home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 16 / fpc225_3.zip / F-PCHELP.ZIP / EQUCOLON.HLP < prev    next >
Text File  |  1988-07-28  |  2KB  |  49 lines

  1. \ EQUCOLON.HLP  Help file for Constant Variables
  2.  
  3.         Constants as Variables are called VALUEs
  4.  
  5. (=:)           ( N1 -- )
  6.         Primitive used by the following definitions, gets compiled into colon
  7.         definition, and stores value on the stack into the following defs body
  8.         field. May NOT be used on the command line.
  9.  
  10. =:             <name> ( N1 -- )
  11.         Used to assign values into the body of <name>, like VARIABLEs or
  12.         VALUEs. May be used on the command line. Typical usage is as
  13.         follows:        34 VALUE MYVAL          \ create a VALUE
  14.         : CHANGE_MYVAL  ( --- )                 \ define a word to
  15.                         23 =: MYVAL ;           \ change MYVAL
  16.  
  17. INCR>          <name> ( -- )
  18.         Increment the body of <name> by one, used to modify the following
  19.         VALUE or VARIABLE. Use only in a COLON definition.
  20.  
  21. DECR>          <name> ( -- )
  22.         Decrement the body of <name> by one, used to modify the following
  23.         VALUE or VARIABLE. Use only in a COLON definition.
  24.  
  25. +!>            <name> ( n1 -- )
  26.         Increment the body field of <name> by value n1 on the stack.
  27.         Typically used to modify a VALUE or VARIABLE. Use only in a COLON
  28.         definition.
  29.  
  30. !>             <name> ( n1 -- )
  31.         Store the value n1 on the stack into the body field of <name>.
  32.         Typically used to modify a VALUE or VARIABLE. May be used on the
  33.         command line.
  34.  
  35. @>             <name> ( -- n1)
  36.         Fetch the value n1 from the body field of <name> to the stack.
  37.         Typically used to modify a VALUE or VARIABLE. May be used on the
  38.         command line.
  39.  
  40. ON>             <name> ( --- )
  41.         Turn on the VALUE or VARIABLE <name> following. Somewhat faster
  42.         than <name> ON. Use only in a COLON definition.
  43.  
  44. OFF>            <name> ( --- )
  45.         Turn off the VALUE or VARIABLE <name> following. Somewhat faster
  46.         than <name> OFF. Use only in a COLON definition.
  47.  
  48.  
  49.